﻿using System.Data.Entity.ModelConfiguration;

namespace CubicFWNet.Data.Models.Mapping
{
    public class InventoryUerMap : EntityTypeConfiguration<InventoryUer>
    {
        public InventoryUerMap()
        {
            this.HasKey(t => t.Id);

            // Table & Column Mappings
            this.ToTable("InventoryUer");
            this.Property(t => t.ProductID).HasColumnName("ProductID");
            this.Property(t => t.UserID).HasColumnName("UserID");
            this.Property(t => t.OrderID).HasColumnName("OrderID");
            this.Property(t => t.Amount).HasColumnName("Amount");
            this.Property(t => t.CreateTime).HasColumnName("CreateTime");

        }
    }
}
